<?php use_helper('Date'); ?>
<?php $prj_id = $sf_user->getAttribute('prj_id', -1) ?>
<h1>Notes projet</h1>

<table class="liste">
	<thead>
		<tr>
			<th></th>
			<th>Date</th>
			<th>Note</th>
		</tr>
	</thead>
	<tbody>
	<?php 
		foreach ($note_list as $note) {
			echo '<tr>';
			echo '<td class="action">';
			echo '<a href="'. url_for('note/edit?nte_id='.$note->getNteId()) .'">'. image_tag('edit.png') .'</a>';
			echo "</td>\n";
			
			echo '<td>'. format_date($note->getNteDate(), 'dd/MM/yyyy') .'</td>';
			echo '<td>'. $note->getNteNote() .'</td>';
			echo '</tr>';
		}
	?>
	</tbody>
</table>

<div class="action">
<?php echo link_to('Nouvelle note', 'note/new', array('class' => 'action')) ?>
</div>
